package Entity;
import java.io.Serializable;
import java.util.*;


public class User implements Serializable {
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer userName;  // int is Not an object :-\
	private String password=null;
	private String name;
	private String authorization;
	private String email;
	private String role;
	HashMap<Integer, ArrayList<Integer>> req_auto_list;
	
	
	
	
	public User(){
		req_auto_list = new HashMap<Integer, ArrayList<Integer>>();
		
	}
	
	

	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = new String (name);
	}



	public HashMap<Integer, ArrayList<Integer>> getReq_auto_list() {
		return req_auto_list;
	}



	public void setReq_auto_list(HashMap<Integer, ArrayList<Integer>> req_auto_list) {
		this.req_auto_list = req_auto_list;
	}



	public void setUserName(int userName) {
		this.userName = new Integer (userName);
	}



	public User (int userName, String password, String authorization, LinkedList<Integer> reqList){
		this.userName=  new Integer (userName);
		this.password= new String (password);
		this.authorization=new String (authorization);
	}
	
	public int getUserName() {
        return userName;
	}
	
	public String getEmail() {
		return email;
	}



	public void setEmail(String email) {
		this.email = new String (email);
	}



	public String getPassword(){
        return password;
	}
	
	public void setPassword(String Password){
        this.password= new String (Password);
	}
	
	public String getAuthorization(){
        return authorization;
	}
	
	public void setAuthorization(String Authorization){
        this.authorization= new String ( Authorization);
	}
	public String getRole() {
		return role;
	}



	public void setRole(String role) {
		this.role = new String (role);
	}

}
